package com.core.model.lxf;

import com.core.model.AbstractEntity;

import javax.persistence.*;

/**
 * Created with IntelliJ IDEA.
 * User: lxf
 * Date: 2016/12/30
 * Time: 16:32
 * To change this template use Editor | File and Code Templates.
 */
@Entity
@Table(name = "account_credit_rating")
public class AccountCreditRating extends AbstractEntity {

    @OneToOne
    @JoinColumn(name = "account_id")
    private Account account;
    @Column
    private int level;  //信用等级
    @Column
    private double counterFee; //手续费

    public AccountCreditRating() {
    }

    public AccountCreditRating(Account account, int level, double counterFee) {
        this.account = account;
        this.level = level;
        this.counterFee = counterFee;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public int getLevel() {
        return level;
    }

    public void setLevel(int level) {
        this.level = level;
    }

    public double getCounterFee() {
        return counterFee;
    }

    public void setCounterFee(double counterFee) {
        this.counterFee = counterFee;
    }
}
